<include file="Public:wapheader" />
		<div class="page5">
			
			<div class="mainner">
				<div class="banner" id="banner">
					<div class="hd">
						<ul></ul>
					</div>
					<div class="bd">
						<ul>
							<volist name="detail['file']" id="vo">
								<li><img src="{$vo->img}" alt="{$vo->alt}" width="100%" height="250px"/></li>
							</volist>
						</ul>
					</div>
				</div>
				<script type="text/javascript" src="__JS__/TouchSlide.1.1.js" ></script>
				<script>
					TouchSlide({ 
						slideCell:"#banner",
						mainCell:".bd ul", 
						effect:"leftLoop", 
						autoPlay:true,//自动播放
					});
				</script>
				
				<div class="cont">
					<div class="info1">
						<p>
							<label class="top">{$detail['total_price']}万</label>
							<span>均价： <font>{$detail['average_price']}元/㎡</font></span>
						</p>
						<p class="label">
							<volist name="detail['tags']" id="vo">
								<a href="javascript:void(0)">{$vo}</a>
							</volist>
						</p>
					</div>
					<div class="info2">
						<ul>
							<li>
								<span>户型</span>
								<p>{$detail['chamber']}-{$detail['hall']}-{$detail['kitchen']}-{$detail['toilet']}</p>
							</li>
							<li>
								<span>面积</span>
								<p>{$detail['area']}㎡</p>
							</li>
							<li>
								<span>楼层</span>
								<p>{$detail['floor']}</p>
							</li>
							<li>
								<span>朝向</span>
								<p>
									<switch name="detail['aspect']">
										<case value="1">东</case>
										<case value="2">西</case>
										<case value="3">南</case>
										<case value="4">北</case>
										<case value="5">东西</case>
										<case value="6">南北</case>
										<case value="7">东南</case>
										<case value="8">东北</case>
										<case value="9">西南</case>
										<case value="10">西北</case>
									</switch>
								</p>
							</li>
						</ul>
					</div>
					<ul class="info3">
						<li><a href="#"><label>跟进</label><span>近7天3条，共3条</span></a></li>
						<li id="map"><a href="javascript:void(0);"><label>物业地址</label></a></li>
					</ul>
					<ul class="info4">
						<li><a href="#"><label>编号</label><span>{$detail['encoded']}</span></a></li>
						<li><a href="#"><label>钥匙信息</label><span>暂无</span></a></li>
					</ul>
				</div>
			</div>
			
			<div class="btn">
				<a href="javascript:void(0)">去联系</a>
				<a href="{:U('used/follow')}&used_id={$detail.id}">写跟进</a>
			</div>
		</div>
	</body>
<script>
	$('.btn a').eq(0).click(function (){
		var url = "{:U('Ajax/view')}";
		var used_id = "{$detail.id}";
		var data = {used_id:used_id,field:'phone'};
		$.post (url, data, function (response){

				switch (response.state){
					case 0:
						layer.msg('网络出错', {icon: 6});
						break;
					case 1:
						var html = '<div><div style="margin: 0 auto;text-align:center"><ul id="u-type">' +
								'<li style="padding: 10px 10px"><label style="margin-right: 20px">手机号</label>' +
								'<input class="editbox" value="'+response.text+'" type="number" name="chamber"  style="height: 30px"></li>' +
								'</ul></div></div>'
						layer.open({
							type: 1,
							content: html
						});
						break;
					case 2:
						layer.msg(response.text, {icon: 3});
						break;
					case 3:
						layer.msg(response.text,{icon: 6});
						break;

				}
		}, 'json')
	});

</script>
</html>
